package com.android.dumiaogou.model.auction;

import com.android.dumiaogou.model.ParentDataCallback;
import com.android.dumiaogou.utils.MyLog;
import com.google.gson.Gson;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/10/23.
 */

public abstract  class Auction_detail_ruleCallback extends ParentDataCallback<Auction_detail_rule> {

    @Override
    public Auction_detail_rule parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        MyLog.e("Auction_detail_rule",string);
        Auction_detail_rule  data = new Gson().fromJson(string,Auction_detail_rule.class);
        return data;
    }
}


